<?php

use Drupal\wx_transfers\Entity\WxTransfers;

function wx_transfers_wx_transfers_add_page() {
  $e = new WxTransfers();
  module_load_include('inc', 'wx_transfers', 'wx_transfers.forms');
  return drupal_get_form('wx_transfers_wx_transfers_entity_form', $e, 'add');
}

function wx_transfers_wx_transfers_view_page(WxTransfers $e) {
  return entity_view($e->entityType(), [$e]);
}

function wx_transfers_wx_transfers_edit_page(WxTransfers $e) {
  module_load_include('inc', 'wx_transfers', 'wx_transfers.forms');
  return drupal_get_form('wx_transfers_wx_transfers_entity_form', $e, 'edit');
}

function wx_transfers_wx_transfers_delete_page(WxTransfers $e) {
  module_load_include('inc', 'wx_transfers', 'wx_transfers.forms');
  return drupal_get_form('wx_transfers_wx_transfers_delete_form', $e);
}

